package cn.taketoday.live.handler;

import cn.taketoday.live.config.GlobalData;

/**
 * @author TODAY 2021/5/17 23:29
 */
public class LiveEnableCommandHandler implements CommandHandler {

  @Override
  public void handle(CommandContext context) throws Exception {
    GlobalData.lIVE_STATUS = 1;
//					room_id = jsonObject.getLong("roomid");
//					if (room_id == PublicDataConf.ROOMID) {
    // 仅在直播有效 广告线程 改为配置文件
    final MessageHandler messageThread = context.getMessageHandler();
    messageThread.getSettingsService().updateSettings(GlobalData.centerSetConf);
    GlobalData.IS_ROOM_POPULARITY = true;
//	LOGGER.debug("直播开启:::" + message);
  }

}
